package org.opens;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@EntityScan(basePackages = "org.opens.jpa.pojo")
@SpringBootApplication
@EnableTransactionManagement
@EnableScheduling           //表示开启Spring Task的定时任务, 如果使用Quartz实现, 则不需要这个注解.
public class SpringbootTestApplication {

    public static void main(String[] args) {
        SpringApplication.run(SpringbootTestApplication.class, args);
    }

}
